package com.weiiew.buildservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weiiew.common.entity.dto.BuildingCost;
import com.weiiew.common.entity.simple.SimpleItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 魏锴
 * @description 针对表【building_cost】的数据库操作Mapper
 * @createDate 2024-02-09 17:56:29
 * @Entity com.example.adminBackEnd.Entity.dao.BuildingCost
 */
@Mapper
public interface BuildingCostMapper extends BaseMapper<BuildingCost> {
    List<SimpleItem> getBuildingCosts(Integer version);

    @Select("select id from building where name = #{name}")
    Integer getIdByName(String name);

}




